package com.cs342.uwosh.cloudycontacts.tasks.db;




import com.cs342.uwosh.cloudycontacts.Contact;
import com.cs342.uwosh.cloudycontacts.MainActivity;
import com.cs342.uwosh.cloudycontacts.SqlConnect;

import android.os.AsyncTask;

public class AddContactTask extends AsyncTask<Object, Object, Contact>{

	@Override
	protected Contact doInBackground(Object... arg0) {
		SqlConnect db = MainActivity.db;
		db.createContact((Contact)arg0[0]);
		return null;
	}
	
	@Override
	protected void onPostExecute(Contact result)
	{
		new GetAllContactTask().execute();
	}
}
